package com.zhiyou100.entityclass;


import java.io.Serializable;
import java.sql.Date;

public class Teacher implements Serializable {

    private Long tid;
    private String tname;
    private String tsex;
    private Long tsalary;
    private Date tbirthday;
    private Long tdangyuan;

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", tsex='" + tsex + '\'' +
                ", tsalary=" + tsalary +
                ", tbirthday=" + tbirthday +
                ", tdangyuan=" + tdangyuan +
                '}';
    }

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public Long getTsalary() {
        return tsalary;
    }

    public void setTsalary(Long tsalary) {
        this.tsalary = tsalary;
    }

    public Date getTbirthday() {
        return tbirthday;
    }

    public void setTbirthday(Date tbirthday) {
        this.tbirthday = tbirthday;
    }

    public Long getTdangyuan() {
        return tdangyuan;
    }

    public void setTdangyuan(Long tdangyuan) {
        this.tdangyuan = tdangyuan;
    }

    public Teacher(Long tid, String tname, String tsex, Long tsalary, Date tbirthday, Long tdangyuan) {
        this.tid = tid;
        this.tname = tname;
        this.tsex = tsex;
        this.tsalary = tsalary;
        this.tbirthday = tbirthday;
        this.tdangyuan = tdangyuan;
    }

}
